#include <iostream>

class Test//内存对齐
{
public: 
    Test():a(1),b(2){}
    virtual void show()
    {
        std::cout<<"hello\n";
    }
public:
    int a;
    char b;
};

class Derived : virtual public Test
{
public:
    int c;
};

int main()
{
    Derived t;
    printf("%p %p %p %p\n",&t,&t.a,&t.b,&t.c);

    std::cout<<sizeof(t)<<std::endl;
    return 0;
}